home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / dviware / dviapollo / window.doc < prev    next >
Text File  |  1990-10-01  |  1KB  |  28 lines

  1. A DVI window will have the following operations:
  2.  
  3. Open: Filename X Window -> DVIW # errormessage
  4.    Opens a dvi window viewing a particular file.
  5. Close: DVIW -> Window
  6.    Closes a dvi window.  The text on the window is unaffected.  Each
  7.    time a showpage operation is done, the DVIW checks whether the file
  8.    has changed; if it has, the old file is closed and the new file is
  9.    opened.
  10. Showpage: DVIW X pagenum X xscroll X yscroll -> realpage
  11.    Attempts to show page pagenum of the file associated with DVIW.
  12.    Realpage will be different from pagenum if pagenum is not positive
  13.    or the document does not have that many pages.
  14.  
  15. For now, we will forbid having several of these open for one process
  16. at once.  However, it should be possible to open and close several
  17. DVIW's in sequence without accumulating garbage in the address space.
  18. The DVIW's need the following state information:
  19.    Window
  20.    File descriptor
  21.    Cpagep: Pointer to start of current page in the file
  22.    Ppagep: Pointer to previous page in the file
  23.    Pagenum: Current page number in the file
  24.  
  25. The routines used to display the file will be determined at load time.
  26. The names of the routines is a historical phenomenon not documented
  27. here.
  28.